<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class UserDetail extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_detail', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->unique();
            $table->string('image');
            $table->string('realname');
            $table->integer('student_id')->unique();
            $table->string('grade');
            $table->string('majority');
            $table->string('classes');
            $table->string('identity_id');
            $table->integer('phone');
            $table->integer('power_code');
            $table->integer('auth_code');
            $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('user_detail');
    }
}
